<?php
namespace Acme\TaskBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class CategoryType extends AbstractType {
	
	public function buildForm(FormBuilder $builder, array $options)
	{
		$builder->add('name');
	}
	
	public function getDefaultOptions(array $options)
	{
		return array(
		  'data_class' => 'Acme\TaskBundle\Entity\Category'
		);
	}
	
	function getName() 
	{
	  return 'category';
	}
}
